<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap-responsive.min.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/uniform.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__CSS__/select2.css?v={#$Think.config.ADMIN_VERSION_VAL}"" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-style2.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-media.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/font-awesome/css/font-awesome.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/changyun.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>

    <style>
        .form-horizontal label {
            display: inline-block;
        }

        .ke-content img {
            max-width: 100%;
        }
    </style>
</head>
<body>
<div id="content" style="margin-top: 0px;margin-left: 0px;padding-top: 20px;min-height: auto;">
    <div class="container-fluid" style="padding-top: 0;">
        <div class="row-fluid">
            <div class="span12">

                <div class="widget-box">
                    <div class="widget-content tab-content">
                        <div id="tab1" class="tab-pane active">
                            <div class="widget-content nopadding">
                                <form action="{#$this_url_action}" method="post" class="form-horizontal" id="form_basic_validate" enctype="multipart/form-data">
                                    <input type="hidden" name="id" value="{#$msg['id']}">


                                    <div class="control-group span8">
                                        <label class="control-label" style="width: 120px;">充值用户: </label>
                                        <div class="controls" style="margin-left: 130px;">
                                            <div class="span8" style="line-height: 30px;">{#$msg.user_nickname} {#$msg.user_true_phone}</div>
                                        </div>
                                    </div>
                                    <div class="control-group span8">
                                        <label class="control-label" style="width: 120px;">余额(积分): </label>
                                        <div class="controls" style="margin-left: 130px;">
                                            <input type="number" class="span2" disabled  value="{#$msg.user_score}"/>
                                        </div>
                                    </div>

                                    <div class="control-group span8">
                                        <label class="control-label required" style="width: 120px;">充值金额(积分): </label>
                                        <div class="controls" style="margin-left: 130px;">
                                            <input type="number" class="span2" name="recharge_money" value=""/>
                                        </div>
                                    </div>
                                    <div class="control-group span8">
                                        <label class="control-label required" style="width: 120px;">备注: </label>
                                        <div class="controls" style="margin-left: 130px;">
                                            <input type="text" class="span2" name="remark" value="" maxlength="9"/>
                                        </div>
                                    </div>

                                    <div class="form-actions span6">
                                        <button type="submit" class="btn btn-success" style="margin-left: 110px;">确认充值</button>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <hr>
    </div>
</div>
</div>
<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery.ui.custom.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery.uniform.js"></script>
<script src="__JS__/select2.min.js"></script>
<script src="__PUBLIC__/Admin/js/matrix.js"></script>
<script src="__PUBLIC__/Admin/js/matrix.tables.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script src="__PUBLIC__/js/Validform.min.js"></script>

<script type="text/javascript">

    $(function () {
        $('select').select2();

        var loadi = null;
        var demo1 = $("#form_basic_validate").Validform({
            tiptype: 3,
            ajaxPost: true,
            postonce: true,
            tiptype: function (msg, o, cssctl) {
                if (!o.obj.is("form")) {
                    var objtip = o.obj.siblings(".Validform_checktip");
                    cssctl(objtip, o.type);
                    objtip.text(msg);
                }
            },
            beforeSubmit: function (curform) {
                loadi = layer.load('表单正在处理中，请稍等 ...');
            },
            callback: function (data) {
                layer.close(loadi);
                if (data.status == 1) {
                    layer.alert(data.msg, {icon: 1}, function () {
                        parent.location.reload();
                        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭

                    });
                } else {
                    layer.alert(data.msg, {icon: 0});
                }
            }
        });
    })
</script>
<script src="__PUBLIC__/js/uploadify/api-uploadify.js"></script>
</body>
</html>
